import request from '@/utils/request'

// 查询股票周信息列表
export function listStockweekinfo(query) {
  return request({
    url: '/stock/stockweekinfo/list',
    method: 'get',
    params: query
  })
}

// 查询股票周信息详细
export function getStockweekinfo(weekInfoId) {
  return request({
    url: '/stock/stockweekinfo/' + weekInfoId,
    method: 'get'
  })
}

// 新增股票周信息
export function addStockweekinfo(data) {
  return request({
    url: '/stock/stockweekinfo',
    method: 'post',
    data: data
  })
}

// 修改股票周信息
export function updateStockweekinfo(data) {
  return request({
    url: '/stock/stockweekinfo',
    method: 'put',
    data: data
  })
}

// 删除股票周信息
export function delStockweekinfo(weekInfoId) {
  return request({
    url: '/stock/stockweekinfo/' + weekInfoId,
    method: 'delete'
  })
}
